import { CmdCode, EventCode } from '../../code/index';
import { CmdSignModel, CustomerWithdrawRecordModel } from '../../models/index';
import { AHttpCmd } from '../base.cmd';

export class CustomerWithdrawRecordListCmd extends AHttpCmd {
    constructor(private model: CustomerWithdrawRecordModel) {
        super();
    }

    req(): CmdSignModel {
        return super.buildCmdSign(this.model);
    }

    resp(data: any): void {
    }

    error(model: CmdSignModel): void {
    }

    setParams(params: any) {
        if (!this.model) {
            this.model = new CustomerWithdrawRecordModel();
        }
        Object.assign(this.model, params);
    }

    getCmdCode(): string {
        return CmdCode.CUSTOMER_WITHDRAW_RECORD_LIST;
    }
}
